package config

import (
	"fmt"
	"github.com/go-redis/redis/v8"
	"time"
)

func GetConnect() *redis.Client {
	var redisConfig = &redis.Options{
		Addr:        fmt.Sprintf("%s:%d", "", 6379),
		DB:          5,
		Password:    "",
		DialTimeout: time.Second * 8,
	}
	return redis.NewClient(redisConfig)
}
